package com.mmlshare.pencilbox.filehelper.controller;

import com.mmlshare.pencilbox.filehelper.model.UserRepository;
import com.mmlshare.pencilbox.filehelper.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(path = "/")
public class LoginController {

	@Autowired
	private UserRepository userRepository;

	@RequestMapping(path = "/")
	public String index(){
		User user = new User();
		user.setAccount("111");
		user.setCreateTime(1212);
		user.setCredit("123");
		user.setId("123");
		userRepository.insert(user);
		return "Hello World";
	}
}
